home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / OpenGLDevice.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-12  |  832 b   |  38 lines

  1. // OpenGLDevice.h: Schnittstelle fⁿr die Klasse OpenGLDevice.
  2. //
  3. // Copyright by AndrΘ Stein
  4. // E-Mail: stonemaster@steinsoft.net, andre_stein@web.de
  5. // http://www.steinsoft.net
  6. //////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef OPENGL_DEVICE_H
  9. #define OPENGL_DEVICE_H
  10.  
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14.  
  15. #include <windows.h>
  16.  
  17. class OpenGLDevice
  18. {
  19. public:
  20.     OpenGLDevice(HDC& deviceContext,int stencil = 0);
  21.     OpenGLDevice(HWND& window,int stencil = 0);
  22.     OpenGLDevice();
  23.  
  24.     bool create(HDC& deviceContext,int  stencil = 0);
  25.     bool create(HWND& window,int stencil = 0);
  26.  
  27.     void destroy();
  28.         
  29.     virtual ~OpenGLDevice();
  30.  
  31. protected:
  32.     bool setDCPixelFormat(HDC& deviceContext,int stencil);
  33.     
  34.     HGLRC renderContext;
  35. };
  36.  
  37. #endif // ifndef OPENGL_DEVICE_H
  38.